package controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import sms.ISmsService;

import javax.annotation.Resource;

/**
 * @author caosinuo
 * @date 2019/5/22 10:57
 */

@RestController
@RequestMapping
public class SmsVerifityCodeController {
   private Logger LOG = LoggerFactory.getLogger(this.getClass());

   @Resource
   private ISmsService smsService;

   /**
    * 发送短信验证码
    *
    * @param mobile
    * @return
    */
/*   @RequestMapping("/sendMessage")
   public Object sendMessage(@RequestParam String mobile) {
      return smsService.sendMessage(mobile);
   }*/

/*   *//**
    * 判断验证码是否正确
    *
    * @param mobile
    * @param identifyCode
    * @return
    *//*
   @RequestMapping("/checkIsCorrectCode")
   public Object checkIsCorrectCode(@RequestParam String mobile, @RequestParam String identifyCode) {
      return smsService.checkIsCorrectCode(mobile, identifyCode);
   }*/

}
